//
//  OperationCell.m
//  HealthA段
//
//  Created by MrJXT on 15/6/10.
//  Copyright (c) 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "OperationCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation OperationCell
- (void)dealloc
{
    [_nameLabel release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.nameLabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.nameLabel.frame = CGRectMake(0, 0, WIDTH, HEIGHT);
//    self.nameLabel.textColor = [UIColor whiteColor];
    self.nameLabel.layer.borderWidth = 1;
    self.nameLabel.layer.cornerRadius = 18;
//    self.nameLabel.backgroundColor = [UIColor whiteColor];
    self.nameLabel.layer.borderColor = [UIColor clearColor].CGColor;
    self.nameLabel.layer.masksToBounds = YES;
    self.nameLabel.textAlignment = NSTextAlignmentCenter;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
